import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86186
 * Date: 2023-10-30
 * Time: 11:11
 */
public class Main {
    public static void main(String[] args) {
        /*Test test = new Test();
        int[] nums1 = {4,9,5};
        int[] nums2 = {9,4,9,8,4};
        int[] ret = test.intersection(nums1,nums2);*/
        List<Integer> list = new ArrayList<>();
        list.add(1);
        list.add(2);
        list.add(3);
        list.add(4);
        list.add(5);
        list.add(6);
        int a = list.remove(0);
        System.out.println(a);
        list.remove(0);
        list.remove(0);
        list.remove(0);
    }
}